const giftRouter = {
  path: 'gift',
  name: 'Gift',
  hidden: true,
  meta: { title: '扫码有礼' },
  component: () => import('@/views/operate/index'),
  redirect: '/operation/gift/activity_overview',
  children: [
    {
      path: 'activity_overview',
      name: 'ActivityOverview',
      meta: { title: '活动概况', noCache: true },
      component: () => import('@/views/operate/gift')
    },
    {
      path: 'add_channel_store',
      name: 'AddChannelStore',
      meta: { title: '新增渠道门店', noCache: true },
      component: () => import('@/views/operate/gift/channel/add-store')
    },
    {
      path: 'edit_channel_store',
      name: 'EditChannelStore',
      meta: { title: '编辑渠道门店', noCache: true },
      component: () => import('@/views/operate/gift/channel/add-store')
    },
    {
      path: 'write_off',
      name: 'WriteOff',
      meta: { title: '渠道礼品券核销详情', noCache: true },
      component: () => import('@/views/operate/gift/channel/write-off')
    },
    {
      path: 'add_coupon',
      name: 'AddCoupon',
      meta: { title: '新增礼品券', noCache: true },
      component: () => import('@/views/operate/gift/coupon/add-coupon')
    },
    {
      path: 'coupon_detail',
      name: 'CouponDetail',
      meta: { title: '礼品券详情', noCache: true },
      component: () => import('@/views/operate/gift/coupon/coupon-detail')
    }
  ]
}

export default giftRouter
